package com.eagle.depthinspringboot.context;

import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;

@Order(Ordered.HIGHEST_PRECEDENCE)
public class HelloWorldApplicationContextInitializer<c extends ConfigurableApplicationContext> implements ApplicationContextInitializer<c> {
	@Override
	public void initialize(c applicationContext) {
		System.out.println("ConfigurableApplicationContext.id = "+ applicationContext.getId());
	}
}
